<?php
/**
 * Handles and manages an company and its entity in database
 * - based on CRUD
 *
 */
class CompaniesModel extends Model {

    public function createCompanies(){

	//Skapa databasfrågor
	//Slå ihop till en fråga och dela (om nödvändigt) i controller!!!!!
	$query[1]		= $this->db->query('SELECT * FROM klimat_comp WHERE cat = ? AND active= ? ORDER BY name ASC ','ii', 1, 1);
	$query[2]		= $this->db->query('SELECT * FROM klimat_comp WHERE cat = ? AND active= ? ORDER BY name ASC ','ii', 2, 1);
	$query[3]		= $this->db->query('SELECT * FROM klimat_comp WHERE cat = ? AND active= ? ORDER BY name ASC ','ii', 3, 1);

        return $query;
        }
   
}
?>
